package com.vinny.springbootflowable.exception;

import com.vinny.springbootflowable.common.HttpStatus;
import lombok.Getter;

@Getter
public abstract class BaseException extends RuntimeException {
    private final HttpStatus status;

    protected BaseException(HttpStatus status) {
        super(status.getReasonPhrase());
        this.status = status;
    }

    protected BaseException(HttpStatus status, String message) {
        super(message);
        this.status = status;
    }

    protected BaseException(HttpStatus status, String message, Throwable cause) {
        super(message, cause);
        this.status = status;
    }
} 